package com.edu.atams.service.impl;

import com.edu.atams.entity.Subject;
import com.edu.atams.mapper.SubjectMapper;
import com.edu.atams.service.SubjectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author czj666
 * @since 2021-10-09
 */
@Service
public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> implements SubjectService {

    @Override
    public Integer getAllNum() {
        List<Subject> list = this.list();
        return list.size();
    }
}
